<@html>
<link rel="stylesheet" href="${path}/js/dojo/dojox/grid/resources/${theme}Grid.css">
<script type="text/javascript">
	dojo.require("dijit.dijit");
	dojo.require("dijit.form.Form");
	dojo.require("dijit.form.TextBox");
	dojo.require("dojox.data.QueryReadStore");
	dojo.require("dijit.form.FilteringSelect");
	dojo.require("widget.navgrid.NavGrid");
</script>
<div id="kk" dojoType="dijit.form.FilteringSelect" store="store1"
     labelAttr="name" searchAttr="code" autoComplete="true">
</div> <label id="lblKk"></label>      <label id="lblKk2"></label>

<script type="text/javascript">
	var store1 = new dojox.data.QueryReadStore({
				url : '${path}/common/select.obtainStore.do?storeType=customer&searchAttr=code',
				requestMethod : "post"
			});
	dojo.ready(function() {
		dijit.byId("kk").onChange = function(newValue) {
			var name = store1.getValue(this.item, "name");
			var id = store1.getValue(this.item, "id");
			dojo.byId("lblKk").innerHTML = name;
			dojo.byId("lblKk2").innerHTML = id;
		}
	})

</script>
</@html>